<extend name="Base/wxcommon"/>

<block name="header">

</block>

<block name="side">
<!-- 左侧 nav
================================================== -->

</block>
<block name="body">
   <if condition="$data"> 
  <div class="container">
            <header class="clearfix">
                <h1>客户业务系统</h1>
            </header>  
           
            <div class="main">
                <form action="{:U()}" id="commentForm" method="post"  class="cbp-mc-form" >
                    <div class="cbp-mc-column">
                        <input type="hidden" name="id" value="{$data['id']}"/>
                        <label for="first_name">顾客姓名</label>
                        <span><input type="text" name="name" value="{$data.name}" disabled="false"></span>
                        <label for="last_name">顾客手机号码</label>
                        <span><input type="text" name="phone" value="{$data.phone}" disabled="false"></span>
                        <label for="email">顾客 QQ</label>
                        <span><input type="text" name="qq" value="{$data.qq}" disabled="false"></span>
                        <label for="country">预约到店时间</label>
                        <span><input type="text" name="yytime" value="{$data.yytime}" disabled="false"></span>
                        <label for="bio">顾客倾向套系</label>
                        <span><textarea  type="text" class="text input-large" style="height: 100px; width: 100%;" value="{$data.bz}" disabled="false">{$data.bz}</textarea></span>
                    </div>
                    <div class="cbp-mc-column">
                        <label for="phone">获取客服</label>
                        <select name="kf" disabled="false">
                            <php>if(count($kefu) !== 1){echo "<option value=''>无</option>";}</php>
                            <volist name="kefu" id="vo">
                                    <option value="{$vo.uid|default=null}" <eq name="vo.uid" value="$data.kefu"> selected</eq>>{$vo.nickname|default=null}</option>
                            </volist>
                        </select>
                        <label for="affiliations">线上门市</label>
                        <select name="xsjd" <php>if($group == 5||$group == 8||$group == 3){echo 'disabled="false"';}</php>>
                            <php>if(count($xianshang) !== 1){echo "<option value=''>未分配门市</option>";}</php>
                            <volist name="xianshang" id="vo">
                                <option value="{$vo.uid|default=null}" <php>if($vo['uid'] === $data['xianshangjd']){echo "selected";
                                }</php> >{$vo.nickname|default=null}</option>                          
                            </volist>
                        </select>
                        <label for="affiliations">下线门市</label>
                        <select name="xxjd" <php>if($group == 5||$group == 6||$group == 8){echo 'disabled="false"';}</php>>
                            <php>if(count($xianxia) !== 1){echo "<option value=''>未分配门市</option>";}</php>
                            <volist name="xianxia" id="vo">
                                <option value="{$vo.uid|default=null}" <php>if($vo['uid'] === $data['xianxiajd']){echo "selected";
                                }</php> >{$vo.nickname|default=null}</option>                          
                            </volist>
                        </select>   
                        <label>订单金额</label>
                        <input type="text"  name="money" value="{$data['money']}">
                        <label for="cat_name">订单状态</label>
                        <select name="ywstate">
                            <volist name="state" id="vo">
                                <option value="{$vo.uid|default=null}" <eq name="vo.uid" value="$data.ywstate"> selected</eq>>{$vo.name|default=null}</option>
                            </volist>
                        </select>
                        <label for="gagdet">推荐人</label>
                        <input type="text"  name="tj" value="{$data['tj']}">
                    </div>
                    <div class="cbp-mc-column">
                        <label>来源渠道</label>
                        <select name="qd" <php>if($group == 5||$group == 3){echo 'disabled="false"';}</php>>
                              <volist name="qudao" id="vo">     
                                    <option value="{$vo.uid|default=null}" <eq name="vo.uid" value="$data.qudao"> selected</eq>>{$vo.name|default=null}</option>
                              </volist>
                        </select>
                        <label for="drink">业务类别</label>
                        <select name="lb" <php>if($group == 5||$group == 3){echo 'disabled="false"';}</php>>
                            <volist name="liebei" id="vo">
                                <option value="{$vo.uid|default=null}" <eq name="vo.uid" value="$data.liebei"> selected</eq>>{$vo.name|default=null}</option>
                            </volist>
                        </select>
                    </div>
                    <div class="cbp-mc-submit-wrap"><input class="cbp-mc-submit" type="submit" value="提交" /></div>
                </form>
            </div>
            
        </div>
        <else />
               
        </if>
</block>